home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zoom 2
/
Zoom - Release 2 (1996)(Active Software)[!].iso
/
texts
/
dosman121
/
man
/
lock
< prev
next >
Wrap
Text File
|
1995-05-06
|
2KB
|
61 lines
LOCK (1.X, 2.X, 3.X located in C:)
NAME
LOCK - Enables or disables the write protection of a
harddrive partition formatted under the Fast File System
(FFS).
SYNOPSIS
LOCK drive ON/OFF PASSWORD
DESCRIPTION
1.x only lets you enable or disable the write
protection of a FFS. 2.x/3.x it also enables or disables
the write protection of every kind of disk including
floppies. The drive is unlocked only when another LOCK
command is sent or reboot the computer.
KEYWORDS
DRIVE
The name of the disk or partition. For 1.x, it can
only be a hard drive formatted with the FFS. 2.x/3.x lets
you LOCK floppy disks too. LOCK works a little
differently on floppies than other commands. Normally,
when a command is set onto a floppy drive (eg. df0:) it
will only effect that particular disk. But, with LOCK, it
effects any and every disk inserted into the drive.
ON/OFF
This keyword lets you protect the disk (LOCK ON) or
write enable (LOCK OFF). The default is for the disk to
be write enabled.
PASSWORD
Under 1.2, this password had to be four characters
long. On Operating Systems 1.3 and above it can be of any
length.The password is considered to be a text string.
Therefor, if there are spaces in it, it must be enclosed
in quotes. If a a password was included in the LOCK ON
command, the same password keyword must be used in the
LOCK OFF command for the disk to be write enabled.
EXAMPLES
1.To protect harddrive partition Dh1: with a password
of saturn:
LOCK DH1: ON saturn
2. To turn off the same:
LOCK DH1: OFF saturn
or
LOCK DH1: saturn